<div id="main-content">
  <div class="container-fluid">
    <div class="row-fluid">
<!--			<div class="span12">
				<div class="nonboxy-widget">
					<div class="widget-head">
						<h5><i class="black-icons blocks_images"></i><?=$title?></h5>
					</div>
					<div class="widget-content">
						<div class="widget-box">
              <?=$this->form_eksternal->form_open("", 'class=" form-horizontal well" id="formoutlet"', 
                      array("id_detail" => $detail[0]->id_outlet))?>
								<fieldset>
									<div class="control-group">
										<label class="control-label">Name</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_input('name', $detail[0]->name, 'class="span4"')?>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label">Email</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_input('email', $detail[0]->email, 'class="span4"')?>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label">Telphone</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_input('telp', $detail[0]->telp, 'class="span4"')?>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label">Alamat</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_textarea('alamat', $detail[0]->alamat, 'class="span4"')?>
										</div>
									</div>
                  <div class="control-group">
										<label class="control-label">Kota</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_input('kota', $detail[0]->kota, 'class="span4"')?>
										</div>
									</div>
                  <div class="control-group">
										<label class="control-label">Kode Pos</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_input('kodepos', $detail[0]->kodepos, 'class="span4"')?>
										</div>
									</div>
                 
                    <label class="control-label">Status</label>
										<div class="controls">
                     <?=$this->form_eksternal->form_dropdown('status', array(0 => "Active", 1 => "No Active", 2 => "Development"), 
                             array($detail[0]->id_status_outlet))?>
                    </div>
                    
                    <?php if($this->session->userdata('id') == 1){?>
                    <div class="control-group">
									</div>
                    <div class="control-group">
										<label class="control-label">POS</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_input('pos', $detail[0]->pos, 'class="span4"')?>
										</div>
									</div> <?php } ?>
									<div class="control-group">
										<label class="control-label">Own Bengkel</label>
										<div class="controls">
                      <?php
                       if($detail[0]->own == 1){
                                        $status_id = TRUE;
                                      }else{
                                        $status_id = FALSE;
                                      }
                      ?>
                      <?=$this->form_eksternal->form_checkbox('own', 1, $status_id);?>
										</div>
									</div>
									</div>
                  
								</fieldset>
								<div class="form-actions">
									<button class="btn btn-primary" type="submit">Save changes</button>
									<button class="btn" onclick="history.go(-1);return false;">Cancel</button>
								</div>
							</form>
						</div>
					</div>
				</div>-->
        <div class="span12">
          <div class="box-tab">
            <div class="tabbable"> 
              <!-- Only required for left/right tabs -->
              <ul class="nav nav-tabs">
                <li class="active"><a href="#tab1" data-toggle="tab">Information</a></li>
                <li><a href="#tab3" data-toggle="tab">Personnel</a></li>
                <li><a href="#tab2" data-toggle="tab">System</a></li>
              </ul>
              <div class="tab-content">
                <div class="tab-pane active" id="tab1">
                  <?=$this->form_eksternal->form_open("", 'class=" form-horizontal well" id="formoutlet"', 
                      array("id_detail" => $detail[0]->id_outlet))?>
                  <div class="control-group">
										<label class="control-label">Name</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_input('name', $detail[0]->name, 'class="span4"')?>
										</div>
									</div>
                  <div class="control-group">
										<label class="control-label">Email</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_input('email', $detail[0]->email, 'class="span4"')?>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label">Telphone</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_input('telp', $detail[0]->telp, 'class="span4"')?>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label">Alamat</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_textarea('alamat', $detail[0]->alamat, 'class="span4"')?>
										</div>
									</div>
                  <div class="control-group">
										<label class="control-label">Kota</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_input('kota', $detail[0]->kota, 'class="span4"')?>
										</div>
									</div>
                  <div class="control-group">
										<label class="control-label">Kode Pos</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_input('kodepos', $detail[0]->kodepos, 'class="span4"')?>
										</div>
									</div>
                  <div class="control-group">
										<label class="control-label">Grand Launching</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_input('grand_launching', $detail[0]->grand_launching, 'class="span4"')?>
										</div>
									</div>
                </div>
                <div class="form-horizontal well tab-pane" id="tab3">
                  
                  <div class="control-group">
										<label class="control-label">Kepala Outlet</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_input('ka_outlet', $detail[0]->ka_outlet, 'class="span4"')?>
										</div>
									</div>
                  <div class="control-group">
										<label class="control-label">Owner</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_input('owner_outlet', $detail[0]->owner_outlet, 'class="span4"')?>
										</div>
									</div>
                  <div class="control-group">
										<label class="control-label">HP Owner</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_input('hp_owner', $detail[0]->hp_owner, 'class="span4"')?>
										</div>
									</div>
                  
                </div>
                <div class="form-horizontal well tab-pane" id="tab2">
                  
                  <div class="control-group">
										<label class="control-label">No Outlet</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_input('no_outlet', $detail[0]->no_outlet, 'class="span4"')?>
										</div>
									</div>
                  
                  <div class="control-group">
										<label class="control-label">Status</label>
										<div class="controls">
                     <?=$this->form_eksternal->form_dropdown('status', array(0 => "Active", 1 => "No Active", 2 => "Development"), 
                             array($detail[0]->id_status_outlet))?>
                    </div>
									</div>
                  <?php if($this->session->userdata('id') == 1){?>
                  <div class="control-group">
										<label class="control-label">POS</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_input('pos', $detail[0]->pos, 'class="span4"')?>
										</div>
									</div> <?php } ?>
                  <div class="control-group">
										<label class="control-label">Own Bengkel</label>
										<div class="controls">
                      <?php
                       if($detail[0]->own == 1){
                                        $status_id = TRUE;
                                      }else{
                                        $status_id = FALSE;
                                      }
                      ?>
                      <?=$this->form_eksternal->form_checkbox('own', 1, $status_id);?>
										</div>
									</div>
                  <div class="control-group">
										<label class="control-label">EDC Mandiri</label>
										<div class="controls">
                      <?php
                       if($detail[0]->edc_mandiri == 1){
                                        $status_edc = TRUE;
                                      }else{
                                        $status_edc = FALSE;
                                      }
                      ?>
                      <?=$this->form_eksternal->form_checkbox('edc_mandiri', 1, $status_edc);?>
										</div>
									</div>
                  <div class="control-group">
										<label class="control-label">System</label>
										<div class="controls">
                     <?=$this->form_eksternal->form_dropdown('system_pos', array(0 => "POS V2", 1 => "POS V3 BO", 2 => "POS V3 NEW"), 
                             array($detail[0]->system_pos))?>
                    </div>
									</div>
                  <div class="control-group">
										<label class="control-label">Database</label>
										<div class="controls">
                     <?=$this->form_eksternal->form_dropdown('jenis_database', array(0 => "DB V2", 1 => "DB V3 NON-SKU", 2 => "DB V3 SKU"), 
                             array($detail[0]->jenis_database))?>
                    </div>
									</div>
                  <div class="control-group">
										<label class="control-label">DB Location</label>
										<div class="controls">
                     <?=$this->form_eksternal->form_dropdown('db_location', array(0 => "Frontdesk-PC", 1 => "Partman-PC"), 
                             array($detail[0]->db_location))?>
                    </div>
									</div>
                  <div class="control-group">
										<label class="control-label">Brand Hardware</label>
										<div class="controls">
                     <?=$this->form_eksternal->form_dropdown('brand_hardware', array(0 => "PILIH", 1 => "ACER", 2 => "WEARNESS", 3 => "RAKITAN/ OWN SUPPLY"), 
                             array($detail[0]->brand_hardware))?>
                    </div>
									</div>
                  <div class="control-group">
										<label class="control-label">Internet Status</label>
										<div class="controls">
                      <?php
                       if($detail[0]->internet_status == 1){
                                        $status_internet = TRUE;
                                      }else{
                                        $status_internet = FALSE;
                                      }
                      ?>
                      <?=$this->form_eksternal->form_checkbox('internet_status', 1, $status_internet);?>
										</div>
									</div>
                  <div class="control-group">
										<label class="control-label">Internet Connection</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_dropdown('internet_connection', array(0 => "SPEEDY / ADSL", 1 => "USB MODEM", 2 => "INTERNET CABLE"), array($detail[0]->internet_connection))?>
										</div>
									</div>
                  <div class="form-actions">
                    <button class="btn btn-primary" type="submit">Save changes</button>
                    <button class="btn" onclick="history.go(-1);return false;">Cancel</button>
                  </div>
                </div>
                </form>
              </div>
            </div>
          </div>
        </div>
			</div>
		</div>
  </div>
</div>